{% include "header.html" %}
<div class="container">
<table class="table table-bordered table-striped">
    <caption>系统信息</caption>
    <tr>
        <td>启动时间</td>
        <td>{{Start}}</td>
    </tr>
    <tr>
        <td>运行时间</td>
        <td>{{Duration}}</td>
    </tr>
    <tr>
        <td>数据库binlog信息</td>
        <td>{{MasterStatus.Filename}}--{{MasterStatus.Position}}</td>
    </tr>
    <tr>
        <td>当前处理binlog信息</td>
        <td>{{CurrentBinlogInfo.Filename}}--{{CurrentBinlogInfo.Position}}</td>
    </tr>
    <tr>
        <td>系统总协程数</td>
        <td>{{routineNumber}}</td>
    </tr>
    <tr>
        <td>推送客户端</td>
        <td>
            <ul>
                {% for client in pusherClients%}
                    <li>
                        {{client.Desc}}--{{client.Schema}}
                    </li>
                {% endfor %}
            </ul>
        </td>
    </tr>
</table>
<table class="table table-bordered table-striped">
    <caption>binlog事件统计</caption>
    <tr>
        <th>数据库</th>
        <th>表名</th>
        <th>事件</th>
        <th>数量</th>
    </tr>
    {% for st in Status %}
    <tr>
        <td>{{st.Schema}}</td>
        <td>{{st.Table}}</td>
        <td>{{st.Event}}</td>
        <td>{{st.Count}}</td>
    </tr>
    {% endfor %}
</table>
</div>
{% include "footer.html" %}
